//
//  ZZPlayerToolBar.h
//  planning
//
//  Created by mac on 2019/7/30.
//  Copyright © 2019 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    
    ZZPlayerToolBarPreviousButtonType,
    
    ZZPlayerToolBarNextButtonType,
    
    ZZPlayerToolBarPlayButtonType,
    
    ZZPlayerToolBarPauseButtonType,
    
    ZZPlayerToolBarTypeButtonType
    
} ZZPlayerToolBarButtonType;

@class  ZZMusic,ZZPlayerToolBar;

@protocol ZZPlayerToolBarDelegate <NSObject>

@optional

- (void)playerToolBar:(ZZPlayerToolBar *)playerToolBar didClickBtnWithType:(ZZPlayerToolBarButtonType)type;

@end

@interface ZZPlayerToolBar : UIView

@property (nonatomic, strong) ZZMusic *music;

@property (nonatomic, assign) ZZPlayerToolBarButtonType type;

@property (nonatomic, weak) id <ZZPlayerToolBarDelegate> delegate;

+ (instancetype)playerToolBar;

@end

NS_ASSUME_NONNULL_END
